import request from '@/utils/request'

// 查询题目标签列表
export function listQuestionTag(query) {
  return request({
    url: '/exam/questionTag/list',
    method: 'get',
    params: query
  })
}

// 查询题目标签所有列表
export function listAllQuestionTag(query) {
  return request({
    url: '/exam/questionTag/listAll',
    method: 'get',
    params: query
  })
}

// 查询题目标签详细
export function getQuestionTag(tagId) {
  return request({
    url: '/exam/questionTag/getInfo/' + tagId,
    method: 'get'
  })
}

// 新增题目标签
export function addQuestionTag(data) {
  return request({
    url: '/exam/questionTag/add',
    method: 'post',
    data: data
  })
}

// 修改题目标签
export function updateQuestionTag(data) {
  return request({
    url: '/exam/questionTag/edit',
    method: 'post',
    data: data
  })
}

// 删除题目标签
export function delQuestionTag(tagId) {
  return request({
    url: '/exam/questionTag/remove/' + tagId,
    method: 'get'
  })
}
